#pragma once

#include "NodeService.h"
#include <protocol/TBinaryProtocol.h>
#include <server/TSimpleServer.h>
#include <transport/TServerSocket.h>
#include <transport/TBufferTransports.h>

using namespace ::apache::thrift;
using namespace ::apache::thrift::protocol;
using namespace ::apache::thrift::transport;
using namespace ::apache::thrift::server;

using boost::shared_ptr;

using namespace  mp2;

class NodeClient
{
public:
	NodeClient(NodeInfo info);
	~NodeClient();
	NodeServiceClient * client;
	shared_ptr<TTransport> i_transport;
};